#ifndef LISTBUTTON_H
#define LISTBUTTON_H

#include <QPushButton>

class ListButton : public QPushButton
{
    Q_OBJECT

public:
    explicit ListButton(QWidget *parent, int listOffset, QString name);
    void setIsHead(bool is);
    void setIsTail(bool is);
    void setIsAfterChecked(bool is);

protected:
    void paintEvent ( QPaintEvent * );

private:
    unsigned int listOffset;
    bool isHead;
    bool isTail;
    bool isAfterChecked;
    QString name;

private slots:
    void send();

    void delList();

signals:

    void list_clicked( unsigned int );

    void list_delete( unsigned int );

};

#endif // LISTBUTTON_H
